﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<HEAD>
    <META content="IE=11.0000"
          http-equiv="X-UA-Compatible">
    <META http-equiv="Content-Type" content="text/html; charset=utf-8">
    <TITLE>投票列表</TITLE>
    <LINK href="/css/style.css" rel="stylesheet" type="text/css">
    <META name="GENERATOR" content="MSHTML 11.00.10586.420">
</HEAD>
<BODY>
<DIV class="wrap" id="header"><IMG src="/images/logo.gif"></DIV>
<DIV class="wrap" id="navbar">
    <DIV class="profile">您好，admin <SPAN class="return"><A
            href="/showList?updateKey=0">返回列表</A></SPAN>
        <SPAN class="addnew"><A href="/add.html">添加新投票</A></SPAN>
        <SPAN class="modify"><A th:href="@{/admin/updateAll(updateKey=1)}">维护</A></SPAN>
        <SPAN class="return"><A
                href="/logOut">注销</A></SPAN></DIV>
    <DIV class="search">
        <FORM action="/showList?pageIndex=1&paheSize=100" method="get">
            <INPUT name="title" class="input-text" type="text">
            <INPUT name="submit" class="input-button" type="submit" value=""/>
        </FORM>
    </DIV>
</DIV>
<DIV class="wrap" id="vote">
    <H2>投票列表 <span style="color: red" th:text="${errorUpdate}"></span></H2>
    <DIV style="float: right;"><span style="margin: 0 20px">[[${mapIPage.getCurrent()}]]/[[${mapIPage.getPages()}]]&nbsp;页</span><A
            th:href="@{/showList(pageIndex=1,paheSize=5)}">首页</A>
        |
        <a th:href="@{/showList(pageIndex=${mapIPage.getCurrent()-1},paheSize=5)}"
           th:if="${mapIPage.getCurrent()} gt 1">上一页</a>
        <span th:if="${mapIPage.getCurrent()} le 1">上一页</span>
        |
        <a th:href="@{/showList(pageIndex=${mapIPage.getCurrent()+1},paheSize=5)}"
           th:if="${mapIPage.getCurrent()} lt ${mapIPage.getPages()}">下一页</a>
        <span th:if="${mapIPage.getCurrent()} ge ${mapIPage.getPages()}">下一页</span>
        | <A th:href="@{/showList(pageIndex=${mapIPage.getPages()},paheSize=5)}">末页</A>
    </DIV>
    <BR>
    <UL class="list">
        <LI class="odd" th:each="map : ${mapIPage.records}">
            <H4><A
                    th:href="@{/checkNumTicket(vsid=${map.get('vs_id')})}" th:text="${map.get('vs_title')}">哪个浏览器好用</A>
            </H4>
            <DIV class="join" th:if="${updateKey} eq 1" >
                <A th:href="@{/admin/checkUpdateSubject(vsid=${map.get('vs_id')})}">修改</A>
                <a th:href="@{/admin/deleteVoteAll(vsid=${map.get('vs_id')})}">删除</a>
            </DIV>
            <DIV class="join" th:if="${updateKey} ne 1">
                <A th:href="@{/checkSubject?(id=${map.get('vs_id')})}">我要参与</A>
            </DIV>

            <P class="info">共有 [[${map.get('countVo')}]] 个选项，已有 [[${map.get('countVi')}]] 个投票。</P></LI>

    </UL>
    <DIV style="float: right;"><span style="margin: 0 20px">[[${mapIPage.getCurrent()}]]/[[${mapIPage.getPages()}]]&nbsp;页</span><A
            th:href="@{/showList(pageIndex=1,paheSize=5)}">首页</A>
        |
        <a th:href="@{/showList(pageIndex=${mapIPage.getCurrent()-1},paheSize=5)}"
           th:if="${mapIPage.getCurrent()} gt 1">上一页</a>
        <span th:if="${mapIPage.getCurrent()} le 1">上一页</span>
        |
        <a th:href="@{/showList(pageIndex=${mapIPage.getCurrent()+1},paheSize=5)}"
           th:if="${mapIPage.getCurrent()} lt ${mapIPage.getPages()}">下一页</a>
        <span th:if="${mapIPage.getCurrent()} ge ${mapIPage.getPages()}">下一页</span>
        | <A th:href="@{/showList(pageIndex=${mapIPage.getPages()},paheSize=5)}">末页</A>
    </DIV>
</DIV>
<DIV class="wrap" id="footer"> 北大青鸟 © 版权所有</DIV>
</BODY>
</HTML>
